#ifndef __GLSL_OLD__
#define __GLSL_OLD__
#define _CRT_SECURE_NO_DEPRECATE
#include <cstdio>
#include <cstdlib>
#include <GL\glew.h>
#include <GL\freeglut.h>

class GlslOld
{
   GLuint p;
   char *vPath, *gPath, *fPath;
   void printProgramInfoLog (GLuint obj);
   void printShaderInfoLog (GLuint obj);
   int  printOglError (char *file, int line);

   void setShaders ();
   char *textFileRead (char *fn);
public:
   GlslOld (char *vert, char *geom, char *frag);
   void setActive (bool);
   GLint getUniformLoc (char *);
   GLint getAttribLoc (char *);
   ~GlslOld ();
};

#endif